package com.uk.exceptions;

public class NestedException extends RuntimeException {
	   protected Exception nestedException;
	   protected int issueId;
	   public NestedException(String msg, Exception e, int id) {
	      super(msg);
	      this.nestedException = e;
	      this.issueId = id;
	   }
	   public NestedException(String msg, Exception e) {
		      super(msg);
		      this.nestedException = e;
		      this.issueId = 0;
		   }
	   public Exception getNestedException() {
	      return this.nestedException;
	   }
	   public int getIssue() {
	      return this.issueId;
	   }
	}
	
